﻿@model MvcApplication1.Models.LoginModel

@{
    ViewBag.Title = "LogOn";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>LogOn Bjacz</h2>


@using (Html.BeginForm())
{
    Html.ValidationSummary(true, "Login was unsuccessful, Please correct the errors and try again");
}
    <fieldset>
        <legend>LoginModel</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.UserLogin)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.UserLogin)
            @Html.ValidationMessageFor(model => model.UserLogin)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Password)
        </div>
        <div class="editor-field">
            @Html.PasswordFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </div>

         <div class="editor-field">
            @Html.CheckBoxFor(model => model.RememberMe)
            @Html.ValidationMessageFor(model => model.RememberMe)
        </div>

        <p>
            <input type="submit" value="LogIn" />
        </p>
           </fieldset>